<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<div style="width:auto;">
<table style="table-layout:fixed;">
		<thead>
			<th>UserId</th>
			<th>UserName</th>
			<th>User Password</th>
			<th>Available</th>
			<th>Roles</th>
			<th>Action</th>
		</thead>
		<tbody>
			<c:forEach var="user" items="${users }">
				<tr>
					<td>
						${user.id }
					</td>
					<td>
						<input type="text" value="${user.name }" />
					</td>
					<td>
						<input type="text" value="${user.password }" />
					</td>
					<td>
						<input type="text" value="${!user.disabled }" />
					</td>
					<td>
						<c:forEach var="role" items="${user.roles }">
				       			<span>${role.name }</span><br/>
						</c:forEach>
					</td>
					<td>
						<a>Edit</a> | <a>Del</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>


	<jsp:include page="/pages/common/pagination.htm" />
	<div class="pagingInfo hidden" startRow='${pagingBean.startRow + 1}'
		endRow='${pagingBean.endRow}'
		startDisplayPage='${pagingBean.startDisplayPage}'
		endDisplayPage='${pagingBean.endDisplayPage}'
		totalPages='${pagingBean.totalPages}'
		totalRows='${pagingBean.totalRows}'
		currentPage='${pagingBean.currentPage}'></div>
	
</div>
